//
//  SXWebViewBridge.h
//  SXIotSDK
//
//  Created by 林鑫 on 2019/12/6.
//

#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
#import <UIKit/UIKit.h>
#import "WKWebViewJavascriptBridge.h"
#import "common.h"

NS_ASSUME_NONNULL_BEGIN

@interface SXWebViewBridge : NSObject<WKNavigationDelegate>
SX_SINGLETON_DEF

@property(nonatomic, retain) WKWebViewJavascriptBridge *bridge;
@property(nonatomic, retain) WKWebView *webView;

- (BOOL)isWebviewInit;
- (void)webviewInit;
- (void)call:(NSString *)handlerName data:(NSString*)jsonStr responseCallback:(WVJBResponseCallback)responseCallback;

@end

NS_ASSUME_NONNULL_END
